package com.ae.base.register;

import com.ae.base.ModConstant;
import com.ae.base.block.PlacedItemTile;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class TileRegister {
    //创建方块实体的注册器
    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, ModConstant.MOD_ID);
    //注册方块实体
    public static final RegistryObject<TileEntityType<PlacedItemTile>> PLACED_ITEM_TILE = TILE_ENTITY.register("placed_item_tile", () -> TileEntityType.Builder.of(PlacedItemTile::new, BlockRegister.PLACED_ITEM.get()).build(null));
}
